﻿using Microsoft.Xna.Framework;

namespace Phoenix.Xna.Framework.Input
{
    public abstract class InputMap : IInputMap
    {
        /// <summary>
        /// Registers this IInputMap with the InputManager.
        /// </summary>
        protected void Register()
        {
            InputManager.Instance.RegisterInputMap(this);
        }

        #region IInputMap Members

        /// <summary>
        /// Update the IInputMap.
        /// </summary>
        /// <param name="gameTime">A snapshot of the elapsed game time.</param>
        public abstract void Update(GameTime gameTime);

        #endregion
    }
}
